<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    <meta name="format-detection" content="telephone=no, email=no"/>
    <meta name="apple-mobile-web-app-capable" content="yes"/>
    <meta name="apple-mobile-web-app-status-bar-style" content="black"/>

</head>
<body>

<script>
    var arr = [1,2,3,11,2,3,1,"a",5,7,"a","b"];
    var result_arr = [];
    arr.sort()
    for(let i = 0;i<arr.length;i++){
        if(arr[i] != arr[i+1]){
            result_arr.push(arr[i])
        }
    }
    console.log(result_arr)

    var arr2 = [1, 3, 5, 8, 7, 99, 8, 7, 3, 5, 66];
    for (let i = 0; i < arr2.length; i++) {
        for (var j = i + 1; j < arr2.length; j++) {
            if (arr2[j] == arr2[i]) {
                arr2.splice(j, 1);
                j--
            }
        }
    }
    console.log(arr2)
</script>


</body>
</html>